package com.zq.englishlearnserve.controller;

import com.zq.englishlearnserve.common.entity.AjaxResult;
import com.zq.englishlearnserve.service.WordsBookService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/wordsBook")
public class WordsBookController {

    @Autowired
    WordsBookService wordsBookService;

    // 获取所有等级、词书
    @PostMapping("/pageList")
    public AjaxResult pageList() {
        return AjaxResult.success(wordsBookService.list());
    }


}
